package com.kingyun.gpsinspection.purificationservice.facade.service.iam.adm;
import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.CertificateType;

import java.util.List;

/**
 * 证书服务层
 * created by lutinabo 2016/12/15
 */
public interface IamCertificateTypeService
{
    /**
     * 查询列表
     * @param bootstrapSearchBean  查询参数
     * @return
     */
    JSONObject list(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 删除证书
     * @param certificateTypeId 证书id
     * @return
     */
    int deleteByPrimaryKey(String[] certificateTypeId);

    /**
     * 新增证书
     * @param record 证书实体
     * @return
     */
    int insertSelective(CertificateType record);

    /**
     * 根据id查询证书
     * @param certificateTypeId 证书id
     * @return
     */
    CertificateType selectByPrimaryKey(String certificateTypeId);

    /**
     * 根据id更新证书
     * @param record 证书实体
     * @return
     */
    int updateByPrimaryKeySelective(CertificateType record);

    /**
     * 证书查找
     * @param name 证书名
     * @return
     */
    List<CertificateType> queryCertificateByName(String name, String type);
}
